// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import {LMap, LTileLayer, LMarker, LWMSTileLayer, LControlLayers, LPopup, LPolygon, LTooltip} from 'vue2-leaflet'
import 'leaflet/dist/leaflet.css'
import axios from 'axios'
import VueAxios from 'vue-axios'

Vue.component('l-map', LMap)
Vue.component('l-tile-layer', LTileLayer)
Vue.component('l-marker', LMarker)
Vue.component('l-wms-tile-layer', LWMSTileLayer)
Vue.component('l-control-layers', LControlLayers)
Vue.component('l-popup', LPopup)
Vue.component('l-polygon', LPolygon)
Vue.component('l-tooltip', LTooltip)

Vue.use(VueAxios, axios)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
